function findArticleAndArticleType(params) {
  return $axios({
    'url': '/article/findArticleAndArticleType',
    'method': 'get',
    params
  })
}



// 新增
function addArticle (params) {
  return $axios({
    url: '/article/addArticle',
    method: 'post',
    data: { ...params }
  })
}

// 修改
function updateArticle (params) {
  return $axios({
    url: '/article/updateArticle',
    method: 'put',
    data: { ...params }
  })
}

// 修改页面反查详情接口
function findArticleById (id) {
  return $axios({
    url: `/article/findArticleById/${id}`,
    method: 'get'
  })
}

// 删除
function deleteArticle (id) {
  return $axios({
    url: `/article/deleteArticle/${id}`,
    method: 'delete'
  })
}

//根据文章类型id查询文章类型名称
function findArticleTypeById (id) {
    return $axios({
        url: `/article/findArticleTypeById?id=${id}`,
        method: 'get'
    })
}

//根据id查询文章内容
function findArticleContentById (id) {
    return $axios({
        url: `/article/findArticleContentById/${id}`,
        method: 'get'
    })
}

function updateArticleContent (params) {
    return $axios({
        url: '/article/updateArticleContent',
        method: 'put',
        data: { ...params }
    })
}